

/// 图片格式枚举
enum HKImageFormat {
  png,
  jpg,
  gif,
  webp,
}
/// 为枚举扩展类型为字符串的value属性
extension ImageFormatExtension on HKImageFormat {
  String get value => ['png', 'jpg', 'gif', 'webp'][index];
}

/// 图片形状枚举
enum HKImageShape {
  ///圆形
  oval,

  ///带圆角
  corner,

  ///像素偏移(上下左右)
  pixel,

  ///常规
  normal,
}

/// 枚举：渐变角度类型 底图展示的地图类型
enum HKGradientType {
  /// 从左到右
  fromLeftToRight,

  /// 从右到左
  fromRightToLeft,

  /// 从上到下
  fromTopToBottom,

  /// 从下到到上
  fromBottomToTop,

  /// 从左下到右上
  fromBottomLeftToTopRight,

  /// 从右上到左下
  fromTopRightToBottomLeft,

  /// 无
  none,
}

enum ContractFileType {
  /// 图片
  image,

  /// 视频
  video,

  /// word
  word,

  /// pdf
  pdf,

  /// none
  none,
}